<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="{$title}">
    <meta name="Keywords" content="{$title}">
    <meta name="Description" content="{$title}">
    <title>{$title}</title>
    <link href="__HOMECSS__/style.css" rel="stylesheet" type="text/css">
    <link href="__HOMECSS__/category.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__HOMEJS__/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="__HOMEJS__/jquery.json.js"></script>
    <script type="text/javascript" src="__HOMEJS__/common.js"></script>
    <script type="text/javascript" src="__HOMEJS__/global.js"></script>
    <script type="text/javascript" src="__HOMEJS__/compare.js"></script>
    <script type="text/javascript" src="__HOMEJS__/jquery-1.9.1.min(1).js"></script>
    <script type="text/javascript" src="__HOMEJS__/jquery.json(1).js"></script>
    <script type="text/javascript" src="__HOMEJS__/transport_jquery.js"></script>
    <script type="text/javascript" src="__HOMEJS__/jquery.SuperSlide.js"></script>
    <script type="text/javascript" src="__HOMEJS__/lizi_common.js"></script>
</head>
<body>
<include file="Template/Home/default/head.html" />
<script type="text/javascript" src="__HOMEJS__/lizi_category.js"></script>
<div id="wrapper">
    <div class="here cle">
        <a href="/">首页</a>
        <code>&gt;</code>
        <?php
            $number = count($p_info,0);
        ?>
        <switch name="number">
            <case value="1">
                <a href="{:U('Classification/lists')}?id={$v.id}">{$p_info[$class_id]['classification']}</a>
            </case>
            <case value="2">
                <a href="{:U('Classification/lists')}?id={$p_info[1]['id']}">{$p_info[1]['classification']}</a>
                <code>&gt;</code>
                <a href="{:U('Classification/lists')}?id={$p_info[0]['id']}">{$p_info[0]['classification']}</a>
            </case>
            <case value="3">
                <a href="{:U('Classification/lists')}?id={$p_info[2]['id']}">{$p_info[2]['classification']}</a>
                <code>&gt;</code>
                <a href="{:U('Classification/lists')}?id={$p_info[1]['id']}">{$p_info[1]['classification']}</a>
                <code>&gt;</code>
                <a href="{:U('Classification/lists')}?id={$p_info[0]['id']}">{$p_info[0]['classification']}</a>
            </case>
        </switch>
    </div>
    <div class="main cle">
        <div class="sidebar">
            <div class="cate-menu" id="cate-menu">
                <h3>
                    <switch name="number">
                        <case value="1">
                            <a href="{:U('Classification/lists')}?id={$p_info[$class_id]['id']}">
                                <strong>{$p_info[$class_id]['classification']}</strong>
                                <i id="total_count">商品共{$count}件</i>
                            </a>
                        </case>
                        <case value="2">
                            <a href="{:U('Classification/lists')}?id={$p_info[0]['id']}">
                                <strong>{$p_info[0]['classification']}</strong>
                                <i id="total_count">商品共{$count}件</i>
                            </a>
                        </case>
                        <case value="3">
                            <a href="{:U('Classification/lists')}?id={$p_info[0]['id']}">
                                <strong>{$p_info[0]['classification']}</strong>
                                <i id="total_count">商品共{$count}件</i>
                            </a>
                        </case>
                    </switch>
                </h3>
                <dl>
                    <foreach name="all_child" item="v">
                        <dt><a href="{:U('Classification/lists')}?id={$v.id}">{$v.classification}</a></dt>
                        <foreach name="v.s_info" item="vv">
                            <dd> <a href="{:U('Classification/lists')}?id={$vv.id}">{$vv.classification}</a></dd>
                        </foreach>
                    </foreach>
                </dl>
            </div>
            <div class="fixed-want" id="fixed-want">
                <div class="hd">大牌推荐</div>
                <div class="bd" style="border-top:0;">
                    <dl class="brand">
                        <dd>
                            <foreach name="brand_info" item="v" key="k">
                                <a href="{:U('classification/lists')}?id={$class_id}&amp;brand={$k}" target="_blank" rel="nofollow">{$v}</a>
                            </foreach>
                            <p class="more"><a href="#">更多&gt;</a></p>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <div class="maincon">
            <div class="search-options" id="search-options">
                <div class="bd">
                    <dl>
                        <dt>品牌：</dt>
                        <dd style="height: 48px;">
                            <div class="items cle">
                                <foreach name="brand_info" item="v" key="k">
                                <div class="link">
                                    <a href="{:U('classification/lists')}?id={$class_id}&amp;brand={$k}" class="item">{$v}</a>
                                </div>
                                </foreach>
                            </div>
                            <a class="more-btn" href="javascript:;" style="display: inline;">更多</a> </dd>
                    </dl>
                    <dl>
                        <dt>价格：</dt>
                        <dd class="dd-price" style="height: 48px;">
                            <div class="items cle w500">
                                <div class="link"> <a href="{:U('classification/lists')}?id={$class_id}&amp;page=1&amp;price_min=20&amp;price_max=70" class="item">20&nbsp;-&nbsp;70</a> </div>
                                <div class="link"> <a href="{:U('classification/lists')}?id={$class_id}&amp;page=1&amp;price_min=70&amp;price_max=120" class="item">70&nbsp;-&nbsp;120</a> </div>
                                <div class="link"> <a href="{:U('classification/lists')}?id={$class_id}&amp;page=1&amp;price_min=120&amp;price_max=170" class="item">120&nbsp;-&nbsp;170</a> </div>
                                <div class="link"> <a href="{:U('classification/lists')}?id={$class_id}&amp;page=1&amp;price_min=170&amp;price_max=220" class="item">170&nbsp;-&nbsp;220</a> </div>
                                <div class="link"> <a href="{:U('classification/lists')}?id={$class_id}&amp;page=1&amp;price_min=220&amp;price_max=270" class="item">220&nbsp;-&nbsp;270</a> </div>
                            </div>
                            <div class="priceform" id="priceform">
                                <div class="form-bg">
                                    <form action="{:U()}?id={$class_id}" method="get" id="freepriceform">
                                        <span class="rmb"></span>
                                        <input type="text" value="" name="price_min" id="pricemin">
                                        <span class="rmb rmb2"></span>
                                        <input type="text" value="" name="price_max" id="pricemax">
                                        <p>
                                            <input type="submit" value="确定" onclick="return makeUri();" class="submit">
                                        </p>
                                    </form>
                                </div>
                            </div>
                        </dd>
                    </dl>
                </div>
            </div>


            <script type="text/javascript">
                function makeUri() {
                    // 开始价格 pricemin
                    var v1 = document.getElementById("pricemin").value;
                    // 截止价格 pricemax
                    var v2 = document.getElementById("pricemax").value;
                    if(v1 == '' || v2 == '' || !$.isNumeric(v1) || !$.isNumeric(v2) || parseInt(v1) > parseInt(v2)){
                        alert('请输入正确的价格区间');
                        return false;
                    }
                }
            </script>
            <div class="sort">
                <div class="bd">
                    <form method="GET" name="listform">
                        <a title="销量" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page}&amp;sort=sale_num&amp;order=asc" class="curr" rel="nofollow"><span class="search_DESC">销量</span></a>
                        <a title="价格" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page}&amp;sort=price&amp;order=asc" rel="nofollow">
                            <span class="">价格</span>
                        </a>
                        <a title="上架时间" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page}&amp;sort=time&amp;order=asc" rel="nofollow">
                            <span class="">上架时间</span>
                        </a>
                        <input type="hidden" name="id" value="1">
                        <input type="hidden" name="brand" value="0">
                        <input type="hidden" name="price_min" value="0">
                        <input type="hidden" name="price_max" value="0">
                        <input type="hidden" name="filter_attr" value="0">
                        <input type="hidden" name="page" value="1">
                        <input type="hidden" name="sort" value="">
                        <input type="hidden" name="order" value="desc">
                    </form>
                </div>
                <div class="search_num">共<b>{$count}</b>个商品
                    <span id="search_btn" class="search_btn">
                        <if condition="$now_page eq 1">
                            <a href="javascript:void(0);" class="iconfont"></a>
                            <else />
                            <a href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page-1}" class="iconfont"></a>
                        </if>
                        <span>
                            <em>{$now_page}</em> /{$page_num}
                        </span>
                        <if condition="$now_page eq $page_num">
                            <a href="javascript:void(0);" class="iconfont"></a>
                            <else />
                            <a href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page+1}" class="iconfont"></a>
                        </if>
                    </span>
                </div>
            </div>
            <div class="productlist">
                <ul class="cle">
                    <foreach name="goods_info" item="v" key="k">
                    <li>
                        <a href="{:U('Goods/detail')}?id={$v.id}" target="_blank" class="productitem">
                            <span class="productimg">
                                <img width="150" height="150" title="{$v.goods_name}" alt="{$v.goods_name}" src="{$v.litimg}" style="display: block;"> </span>
                            <span class="nalaprice xszk">
                                <b>￥{$v.fd_price}</b>
                            </span>
                            <span class="productname">{$v.goods_name}</span>
                            <span class="description">{$v.description}</span>
                            <span class="price"> 专柜价：￥{$v.market_price} </span>
                            <span class="salerow"> 销量：
                                <span class="sales">777</span>件
                            </span>
                        </a>
                        <a href="javascript:addToCart(1)" class="addcart" target="_blank" rel="nofollow">加入购物车</a>
                    </li>
                    </foreach>
                    <if condition="$now_page eq $page_num">
                        <else />
                        <li><a id="nextpage" class="nextpage" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page+1}"><i></i></a></li>
                    </if>
                </ul>
                <br clear="all">
            </div>
            <script type="Text/Javascript" language="JavaScript">
                <!--
                function selectPage(sel)
                {
                    sel.form.submit();
                }
                //-->
            </script>
            <script type="text/javascript">
                window.onload = function()
                {
                    Compare.init();
                    fixpng();
                }
                var button_compare = '';
                var exist = "您已经选择了%s";
                var count_limit = "最多只能选择4个商品进行对比";
                var goods_type_different = "\"%s\"和已选择商品类型不同无法进行对比";
                var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
                var btn_buy = "购买";
                var is_cancel = "取消";
                var select_spe = "请选择商品属性";
            </script>
            <form name="selectPageForm" action="{:U()}" method="get">
                <div class="pagenav" id="pagenav">
                    <ul>
                        <li>
                            <if condition="$now_page eq 1">
                                <else />
                                <a class="prevLink" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page-1}">上一页</a>
                            </if>
                            <?php
                                for($i = 1; $i <= $page_num; $i++){
                                    if($i == $now_page){
                                        echo '<span class="currentStep">'.$i.'</span>';
                                    }else{
                                        echo '<a href="/classification/lists.html?id='.$class_id.'&page='.$i.'" class="step">'.$i.'</a>';
                                    }
                                }
                            ?>
                            <if condition="$now_page eq $page_num">
                                <else />
                                <a class="nextLink" href="{:U('classification/lists')}?id={$class_id}&amp;page={$now_page+1}">下一页</a>
                            </if>
                        </li>
                    </ul>
                    <div class="clear"></div>
                </div>
            </form>
            <script type="Text/Javascript" language="JavaScript">
                <!--
                function selectPage(sel)
                {
                    sel.form.submit();
                }
                //-->
            </script>
        </div>
    </div>
</div>
<include file="Template/Home/default/foot.html" />
</body>
</html>
